package com.woniu.exception.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-15
 */
@TableName("t_exhandle")
@ApiModel(value = "TExhandle对象", description = "")
public class TExhandle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("异常处理表主键")
    @TableId(value = "exhandle_id", type = IdType.AUTO)
    private Integer exhandleId;

    @ApiModelProperty("异常影响")
    private String influence;

    @ApiModelProperty("责任认定（1-我司，2-承运商，3-客户）")
    private Integer liablesideId;

    @ApiModelProperty("事故原因")
    private String excause;

    @ApiModelProperty("处理异常的方式，办法")
    private String approach;

    @ApiModelProperty("赔偿客户金额")
    private Integer penalty;

    @ApiModelProperty("承运商承担的金额")
    private Integer comafford;

    @ApiModelProperty("在途跟踪表t_track主键")
    private Integer trackId;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)  // null "" 不进行序列化
    private TLiableside liableside;

    public TLiableside getLiableside() {
        return liableside;
    }

    public void setLiableside(TLiableside liableside) {
        this.liableside = liableside;
    }

    public Integer getExhandleId() {
        return exhandleId;
    }

    public void setExhandleId(Integer exhandleId) {
        this.exhandleId = exhandleId;
    }
    public String getInfluence() {
        return influence;
    }

    public void setInfluence(String influence) {
        this.influence = influence;
    }
    public Integer getLiablesideId() {
        return liablesideId;
    }

    public void setLiablesideId(Integer liablesideId) {
        this.liablesideId = liablesideId;
    }
    public String getExcause() {
        return excause;
    }

    public void setExcause(String excause) {
        this.excause = excause;
    }
    public String getApproach() {
        return approach;
    }

    public void setApproach(String approach) {
        this.approach = approach;
    }
    public Integer getPenalty() {
        return penalty;
    }

    public void setPenalty(Integer penalty) {
        this.penalty = penalty;
    }
    public Integer getComafford() {
        return comafford;
    }

    public void setComafford(Integer comafford) {
        this.comafford = comafford;
    }
    public Integer getTrackId() {
        return trackId;
    }

    public void setTrackId(Integer trackId) {
        this.trackId = trackId;
    }

    @Override
    public String toString() {
        return "TExhandle{" +
                "exhandleId=" + exhandleId +
                ", influence='" + influence + '\'' +
                ", liablesideId=" + liablesideId +
                ", excause='" + excause + '\'' +
                ", approach='" + approach + '\'' +
                ", penalty=" + penalty +
                ", comafford=" + comafford +
                ", trackId=" + trackId +
                ", liableside=" + liableside +
                '}';
    }
}
